import { createSlice } from "@reduxjs/toolkit"

const userStore = createSlice({
    name: 'users',
    initialState: {
        token:''
    },
    reducers: {
        setToken(state, action) {
            state.token = action.payload
        }
    }
})

const {setToken} = userStore.actions
const userReducer = userStore.reducer

export {setToken}
export default userReducer